package com.deer.wms.base.system.service.impl;


import com.deer.wms.base.system.dao.take.TakeStockDailyMapper;
import com.deer.wms.base.system.model.take.AreaTaskStockDaily;
import com.deer.wms.base.system.model.take.TakeStockDaily;
import com.deer.wms.base.system.service.take.TakeStockDailyService;
import com.deer.wms.common.core.service.AbstractService;
import com.deer.wms.common.core.text.Convert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TakeStockDailyServiceImpl extends AbstractService<TakeStockDaily, Integer> implements TakeStockDailyService {
    @Autowired
    private TakeStockDailyMapper takeStockDailyMapper;
    @Override
    public TakeStockDaily findTakeStockDailyById(Integer id) {
        return takeStockDailyMapper.findTakeStockDailyById(id);
    }

    @Override
    public List<TakeStockDaily> TakeStockDailyList(TakeStockDaily takeStockDaily) {
        return takeStockDailyMapper.TakeStockDailyList(takeStockDaily);
    }

    @Override
    public int delectTakeStockDailyById(String id) {
        return takeStockDailyMapper.delectTakeStockDailyById(Convert.toStrArray(id));
    }

    @Override
    public int saveTakeStockDaily(TakeStockDaily takeStockDaily) {
        return takeStockDailyMapper.saveTakeStockDaily(takeStockDaily);
    }

    @Override
    public List<TakeStockDaily> getAllQuantity(TakeStockDaily takeStockDaily) {
        return takeStockDailyMapper.getAllQuantity(takeStockDaily);
    }

    @Override
    public List<AreaTaskStockDaily> getAreaBoxItemQuantity(TakeStockDaily takeStockDaily) {
        return takeStockDailyMapper.getAreaBoxItemQuantity(takeStockDaily);
    }

}
